home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_34335.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  85 lines

  1. -- card: 34335 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3837
  5. -- name: FileVisFlag
  6.  
  7.  
  8. -- part 2 (button)
  9. -- low flags: 00
  10. -- high flags: A004
  11. -- rect: left=386 top=269 right=293 bottom=471
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: try me
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   if the optionkey is down then edit script of me
  23.   put filename() into temp
  24.   if temp is empty then exit mouseup
  25.   put FileVisFlag(temp)
  26. end mouseUp
  27.  
  28.  
  29.  
  30. -- part contents for background part 5
  31. ----- text -----
  32. FileVisFlag
  33.  
  34. -- part contents for background part 6
  35. ----- text -----
  36. FileVisFlag lets you find out whether a file's icon is visible on the desktop. 
  37.  
  38. FileVisFlag can be used together with SetFile* to alter the characteristics of a file.
  39.  
  40. Other XCMDs of potential interest include FileName*, reNameFIle*, changeFileType*, & FileCreator*.
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. --------------------------------------------
  49. Q: Who invented me?
  50. A:       Larry Wolfarth
  51.           2133 N. Lincoln St.
  52.           Arlington, VA 22207
  53.  
  54. Q: Any limitations on my use?
  55. A:  Just mention the name of my creator in a visible place if you use this XCMD for commercial purposes. [Note: My creator is not a lawyer, but my creator's wife is....]
  56.  
  57. Q: What if you don't like me?
  58. A:  You may (1) write the author & ask for the source code, (2) grumble but continue to use the XCMD as is, or (3) forget the whole thing. HOWEVER, you may NOT complain: you got what you paid for....
  59.  
  60. ••••••••••••••••••••••••••••••••••••••
  61. Reading suggestion: The Visual Display of Quantitative Information, by Ed Tufte (Graphics Press)--opinionated views on such matters as the use of color in diplay graphics, what makes an effective (and useless) graph, etc. Warning: Tufte has no use for pie charts....
  62.  
  63. ‚Ä¢‚Ä¢Note from Steve Drazga, Editor DevStack
  64. I would like to publicly thank Larry for sending in this contribution & supporting the Developer Stack.  It was especially nice the way he formatted his contribution so all I had to do was paste it into the new issue.  Way to go, Larry!
  65.  
  66.  
  67. -- part contents for background part 7
  68. ----- text -----
  69. Syntax:
  70.  
  71.  
  72. FileVisFlag(<"fullPathName">)
  73.  
  74. Returns "Visible" or "inVisible"or "Error" [+ an explanation]
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. -- part contents for background part 10
  84. ----- text -----
  85. 34